
			<div class="container">  
				<ul class="nav nav-tabs">
                 <?php if($this->tank_auth->is_url('product')){ ?>  
					<li><a href="<?php echo site_url('product');?>">Products</a> </li>  
                 <?php } ?>
                 <?php if($this->tank_auth->is_url('category')){ ?> 
					<li><a href="<?php echo site_url('category');?>">Categories</a></li>
                 <?php } ?>
                 <?php if($this->tank_auth->is_url('option')){ ?>  
					<li class="active"><a href="<?php echo site_url('option');?>">Options</a></li> 
                  <?php } ?>   
				</ul>  
			</div>
			<div class="container main">
				<div id="option">
					<h3>Options</h3>
					<div class="row-fluid">
						<div class="span10">
							<ul class="horizontal">
                            <?php if($this->tank_auth->is_url('option/add')){ ?>
								<li><a href="<?php echo site_url('option/add');?>" class="btn">Add Option</a></li>
                            <?php } ?>
							</ul>
						</div>
					</div>
					<?php
					if(empty($hasil)){
							echo "<table class='table table-striped'>
								<thead>
									<tr>
										<td>Option Name</td>
										<td>Price</td>
										<td>Image</td>
										<td>Quantity</td>
									</tr>
								<thead>
							</table>";
					}else{
					?>
						<table class="table table-striped">
							<thead>
								<tr>
                                	<td width="1" style="text-align: center;"><input name="checkbox[]" id="checkbox[]" class="chk_boxes" type="checkbox" value="$row -> product_option_id" /></td>
									<td>Option Name</td>
									<td>Price</td>
									<td>Image</td>
									<td>Quantity</td>
                                    <?php if($this->tank_auth->is_url('option/updatedata') || $this->tank_auth->is_url('option/deletedata')){ ?>
										<td>Action</td>
                                    <?php } ?>
								</tr>
							</thead>
							<?php foreach ($hasil as $row): ?>
								<tr>
                                	<td width="1" style="text-align: center;"><input name="checkbox[]" id="checkbox[]" class="chk_boxes1" type="checkbox" value="$row -> product_option_id" /></td>
									<td><?php echo $row -> option_name ?></td>
									<td><?php echo $row -> price ?></td>
									<td><img style="padding:3px; border:#666 1px solid; " width="40px" height="40px" src="<?php echo base_url();?>data/upload/<?php echo $row -> image?>"/>  </td>
									<td><?php echo $row -> quantity ?></td>
									<?php if($this->tank_auth->is_url('option/updatedata')){ ?>
											<td><?php echo anchor('option/updatedata/'.$row->product_option_id, 'Edit') ;?>
									<?php } ?>
                                    <?php if($this->tank_auth->is_url('option/deletedata')){ ?>
                                        <?php echo anchor('option/deletedata/'.$row->product_option_id, 'Delete'); ?></td>
                                    <?php } ?>         
								</tr>
							<?php endforeach; ?> 
						</table>
					<?php
					}
					?>
				</div>
			</div>
		</div>
        
        <script type="text/javascript" language="javascript">
			$(function() {
  				$('.chk_boxes').click(function(){
					var chk = $(this).attr('checked')?true:false;
					$('.chk_boxes1').attr('checked',chk);
				});
			});
		</script> 
		
		